package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IProjectCompanyDao;
import com.financing.platform.dto.ProjectCompanyDTO;
import com.financing.platform.service.IProjectCompanyService;

@Service("projectCompanyServiceImpl")
public class ProjectCompanyServiceImpl extends BaseServiceImpl implements
		IProjectCompanyService {

	@Autowired
	private IProjectCompanyDao projectCompanyDaoImpl;

	@Override
	public List<ProjectCompanyDTO> getProjectCompanyList(
			ProjectCompanyDTO projectCompanyDTO) throws SQLException {
		return projectCompanyDaoImpl.getProjectCompanyList(projectCompanyDTO);
	}

	@Override
	public ProjectCompanyDTO getProjectCompanyById(int productCompanyId)
			throws SQLException {
		return projectCompanyDaoImpl.getProjectCompanyById(productCompanyId);
	}

	@Override
	public int updateProjectCompany(ProjectCompanyDTO projectCompanyDTO)
			throws SQLException {
		return projectCompanyDaoImpl.updateProjectCompany(projectCompanyDTO);
	}

	@Override
	public int addProjectCompany(ProjectCompanyDTO projectCompanyDTO)
			throws SQLException {
		return projectCompanyDaoImpl.addProjectCompany(projectCompanyDTO);
	}

	@Override
	public int getProjectCompanyListCount(ProjectCompanyDTO projectCompanyDTO)
			throws SQLException {
		return projectCompanyDaoImpl.queryProjectCompanyCount(projectCompanyDTO);
	}

	@Override
	public int delProjectCompany(int productCompanyId) throws SQLException {
		return projectCompanyDaoImpl.delProjectCompany(productCompanyId);
	}

}
